package com.dingreading.cloud.ssxcx.service;

import com.dingreading.cloud.common.base.R;
import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.ssxcx.dto.XcxStudentQuizAnswersDto;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.dingreading.cloud.ssxcx.entity.XcxStudentQuizAnswers;

import java.util.List;

/**
 * 小程序学生答题记录表 服务层。
 *
 * @author EDY
 * @since 2025-08-15
 */
public interface XcxStudentQuizAnswersService extends IService<XcxStudentQuizAnswers> {

    R<Object> checkCorrect(String agencyUid, String storeUid, String studentUid, String subjectLessonUid);

    R<Object> submitStudentQuizAnswers(
            String agencyUid, String storeUid, String subjectLessonUid, String studentUid, String optionItems
    );

    R<Object> getMistakeQuestions(String agencyUid, String storeUid, String studentUid, String subjectLessonUid, List<String> questionUids, String ip);

    Page<XcxStudentQuizAnswersDto> pageListMistake(PageUtil pageUtil, String agencyUid, String storeUid, String studentUid, String projectUid);

}
